/*
 *  connection_window.h
 *  Author: lucio
 */

#ifndef CONNECTION_WINDOW_H
#define CONNECTION_WINDOW_H

#include <gtkmm.h>
#include <gtkmm/window.h>
#include "client_app.h"
#include "client_window.h"
#include "lobby_window.h"
#include "../../common/src/lock.h"
#include "../../common/src/mutex.h"

class ConnectionWindow : public ClientWindow {
public:
	ConnectionWindow(BaseObjectType* object,
                     const Glib::RefPtr<Gtk::Builder>& builder);
	virtual ~ConnectionWindow();
    void setApp(ClientApp* app);
protected:
	Gtk::Entry* eIP;
	Gtk::Entry* ePort;
	Gtk::Entry* eUserName;
	Gtk::Button* btnConnect;
	Gtk::Label* lbMsg;
	LobbyWindow* winLobby;
private:
	void onConnect();
};

#endif //CONNECTION_WINDOW_H

